package io.renren.modules.tms.service;

import io.renren.modules.tms.dao.TmsErrorDao;
import io.renren.modules.tms.entity.ShipmentError;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("tmsErrorService")
public class TmsErrorServiceImpl extends ServiceImpl<TmsErrorDao, ShipmentError> implements TmsErrorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ShipmentError> page = this.page(
                new Query<ShipmentError>().getPage(params),
                new QueryWrapper<ShipmentError>()
        );

        return new PageUtils(page);
    }

}